package org.celery.modules.goods.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 商品表实体类
 *
 * @author Celery
 * @since 2021-10-26
 */
@Data
@TableName("celery_goods")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Goods对象", description = "商品表")
public class Goods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    private String name;
    /**
     * 类型id
     */
    @ApiModelProperty(value = "类型id")
    private String categoryId;
    /**
     * 摘要
     */
    @ApiModelProperty(value = "摘要")
    private String summary;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;
    /**
     * 图片路径
     */
    @ApiModelProperty(value = "图片路径")
    private String pictureUrl;
    /**
     * 视频路径
     */
    @ApiModelProperty(value = "视频路径")
    private String videoUrl;
    /**
     * 销量
     */
    @ApiModelProperty(value = "销量")
    private Integer sell;
    /**
     * 显示销量
     */
    @ApiModelProperty(value = "显示销量")
    private Integer displaySell;
    /**
     * 显示价格
     */
    @ApiModelProperty(value = "显示价格")
    private BigDecimal displayPrice;
    /**
     * 是否仅允许宅配(1 = 是, 2 = 否)
     */
    @ApiModelProperty(value = "是否仅允许宅配(1 = 是, 2 = 否)")
    private Integer isOnlyHome;


}
